package 设计模式.proxy.staticproxy;

/**
 * @功能
 * @创建时间 2020/5/3
 */
public class ProxyStar implements Star {
    public ProxyStar(RealStar star) {
        this.star = star;
    }

    private RealStar star ;

    @Override
    public void confer() {
        System.out.println("ProxyStar.confer");
    }

    @Override
    public void signContract() {
        System.out.println("ProxyStar.signContract");
    }

    @Override
    public void bookTicket() {
        System.out.println("ProxyStar.bookTicket");

    }

    @Override
    public void sing() {
        star.sing();

    }

    @Override
    public void collectMoney() {
        System.out.println("ProxyStar.collectMoney");

    }
}
